Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-xo-space

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-xo-space

ESLint shareable config for XO with 2-space indent

  • 0.18.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
166K
increased by42.6%
Maintainers
3
Weekly downloads
 
Created

What is eslint-config-xo-space?

eslint-config-xo-space is an ESLint shareable configuration package that extends the XO code style with spaces instead of tabs. It is designed to enforce consistent coding styles and best practices in JavaScript projects by providing a set of predefined linting rules.

What are eslint-config-xo-space's main functionalities?

Enforcing Space Indentation

This feature enforces the use of spaces for indentation instead of tabs. By extending the 'xo-space' configuration, projects can maintain a consistent style that uses spaces, which is preferred in some coding standards.

{
  "extends": "xo-space"
}

Predefined Linting Rules

The package provides a set of predefined linting rules that can be extended or overridden. This example shows how to enforce semicolons and single quotes, demonstrating how users can customize the rules to fit their project's needs.

{
  "extends": "xo-space",
  "rules": {
    "semi": ["error", "always"],
    "quotes": ["error", "single"]
  }
}

Other packages similar to eslint-config-xo-space

Keywords

FAQs

Package last updated on 15 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc